package com.gusto.test.repository.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gusto.engine.beans.annotations.Comparable;

@Entity
@Table(name="repository_user")
@Comparable
public class User {
	
	@com.gusto.engine.beans.annotations.Id
	private Long id;
	private String lastName;
	private String firstName;
	private String age;
	private String sex;
	
	public User() {
		super();
	}
	
	public User(Long id, String lastName, String firstName, String age, String sex) {
		super();
		this.id = id;
		this.lastName = lastName;
		this.firstName = firstName;
		this.age = age;
		this.sex = sex;
	}


	@Id
	@Column(name="ident")
	//@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="last")
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	@Column(name="first")
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	@Column(name="age")
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}
	
	@Column(name="sex")
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	
}
